<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>谢尔宾斯基地毯</title>    
    <style type="text/css">
    body {
        margin: 0;
        overflow: hidden;
    }
    
    #mycanvas {
        background-color: #DDD;
        margin: 60px auto;
        display: block;
    }
    </style>
</head>

<body>
    <canvas id="mycanvas" width="800" height="800"></canvas>
</body>
	<script type="text/javascript" src="http://cdn.bootcss.com/dat-gui/0.6.2/dat.gui.js"></script>
	<script type="text/javascript" src="2d.js"></script>
</html>
